package com.xc.quickstart.infrastructure.ds;

import lombok.Data;

@Data
public class DataSourceConfig {
    int port;
    String host;
    String username;
    String password;
    String module;

    public static final String driver = "com.mysql.cj.jdbc.Driver";
    public static final String template = "jdbc:mysql://{0}:{1}/{2}?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&useAffectedRows=true&zeroDateTimeBehavior=convertToNull";
}